/**
*      author: Y_Yao
*      created: 2025-03-15 19:26:44
**/

#include<bits/stdc++.h>

#define int LL
using namespace std;
using LL = long long;
const LL LLINF = 9e18;
const int INF = 0x3f3f3f3f;
string s;
//WBWB WW BWBWBW WBWB WW BW

void solve()
{
    cin >> s;
    if (s.substr (0, 12) == "WBWBWWBWBWBW")	printf ("Do");	
    if (s.substr (0, 12) == "BWBWWBWBWBWW")	printf ("#Do");
    if (s.substr (0, 12) == "WBWWBWBWBWWB")	printf ("Re");
    if (s.substr (0, 12) == "BWWBWBWBWWBW")	printf ("#Re");
    if (s.substr (0, 12) == "WWBWBWBWWBWB")	printf ("Mi");
    if (s.substr (0, 12) == "WBWBWBWWBWBW")	printf ("Fa");
    if (s.substr (0, 12) == "BWBWBWWBWBWW")	printf ("#Fa");
    if (s.substr (0, 12) == "WBWBWWBWBWWB")	printf ("So");
    if (s.substr (0, 12) == "BWBWWBWBWWBW")	printf ("#So");
    if (s.substr (0, 12) == "WBWWBWBWWBWB")	printf ("La");
    if (s.substr (0, 12) == "BWWBWBWWBWBW")	printf ("#La");
    if (s.substr (0, 12) == "WWBWBWWBWBWB")	printf ("Si");	
}

signed main()
{
    ios::sync_with_stdio(false);
    cin.tie(0);

    int t = 1;
    //in >> t;
    while(t--)
    {
        solve();
    }
    return 0;
}